import { ROUTES } from './utils/conts';

import UserFormLogin from './components/user/UserFormLogin';
import UserFormSignUp from './components/user/UserFormSignUp';
import Home from './components/Home/Home';
import MainPageAccount from './components/PersoalArea/MainPageAccount/MainPageAccount';
import Forecast from './components/PersoalArea/Forecast/Forecast';
import Region from './components/PersoalArea/Region/Region';
import TypesRegion from './components/PersoalArea/TypesRegion/TypesRegion';
import UpdateUser from './components/PersoalArea/UpdateUser/UpdateUser';
import CreateRegionTypes from './components/PersoalArea/CreateRegionTypes/CreateRegionTypes';
import UpdateRegionTypes from './components/PersoalArea/UpdateRegionTypes/UpdateRegionTypes';

export const publicRoutes = [
  {
    path: ROUTES.HOME,
    Component: <Home/>
  },
  {
    path: ROUTES.LOGIN,
    Component: <UserFormLogin/>,
  },
  {
    path: ROUTES.REGISTRATION,
    Component: <UserFormSignUp />,
  },
];



export const authRoutes = [
  {
    path: ROUTES.MAIN__PAGE__ACCOUNT,
    Component: <MainPageAccount/>
  },
  {
    path: ROUTES.FORECAST,
    Component: <Forecast/>
  },
  {
    path: ROUTES.REGION,
    Component: <Region/>
  },
  {
    path: ROUTES.TYPES__REGION,
    Component: <TypesRegion/>
  },
  {
    path: ROUTES.UPDATE_USER,
    Component: <UpdateUser/>
  },
  {
    path: ROUTES.CREATE_TYPES_REGION,
    Component: <CreateRegionTypes/>
  },
  {
    path: ROUTES.UPDATE_TYPES_REGION + ":typeId",
    Component: <UpdateRegionTypes/>
  },
 
];

